package main;
/**
 * A class to make the bridge between the GUI and the system.
 * 
 * @author Vincent Goelen, Jelle Stroobants, Simon Versteele, Niels Sterckx
 */

import hospital.Hospital;

import java.util.ArrayList;
import java.util.List;

import javax.swing.JOptionPane;

import adapter.AExternalSystem;

import unit.*;

import movement.*;


import dispatch.*;
import emergency.*;
import emergency.Fire.Size;



@SuppressWarnings("unused")
public abstract class Facade {
	
	private World world;

	private Operator ingelogdeOperator;

	private Dispatcher ingelogdeDispatcher;
	
	private Unit ingelogdeUnitCommander;

	
	/**
	 * Initialize a new Facade with the given DispatchCenter
	 * 
	 * @param center
	 *            The dispatchcenter that is the current workstation
	 */
	public Facade(World world) {
		this.world = world;
	}
	
	public DispatchCenter getDispatchCenter(){
		return world.getDispatchCenter();
	}

	public ArrayList<Emergency> getEmergencies() {
		return getWorld().getDispatchCenter().getEmergencyboard().getEmergencies();
	}
	
	protected World getWorld(){
		return world;
	}

}
